package com.youhome.housing.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * Created by chen365 on 2019/02/26.
 */
@Data
@ApiModel
public class DTOVideoUpload {

    @ApiModelProperty(value = "房源ID", required = true)
    @NotBlank(message = "房源ID不能为空")
    private String houseId;

    @ApiModelProperty(value = "文件名称", required = true)
    @NotBlank(message = "文件名称不能为空")
    private String name;

    @ApiModelProperty(value = "文件大小", required = true)
    @NotNull(message = "文件大小不能为空")
    @Min(value = 0, message = "请输入大于0的数字")
    private Double size;

    @ApiModelProperty(value = "视频地址", required = true)
    @NotBlank(message = "视频地址不能为空")
    private String url;
}
